home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / applications / 3405 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  4.7 KB

  1. Path: mail2news.demon.co.uk!harden.demon.co.uk
  2. From: Mark Harden <mark@harden.demon.co.uk>
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Re: Problems with AFS - Any Help?
  5. Date: Sat, 16 Mar 96 14:29:10 GMT
  6. Organization: Private Node
  7. Message-ID: <9603161429.AA0021l@harden.demon.co.uk>
  8. References: <Pine.SUN.3.91.960315192733.25955C-100000@osiris>
  9. X-NNTP-Posting-Host: harden.demon.co.uk
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!harden.demon.co.uk
  12.  
  13. STEVEN KELLS (sis3538@sis.port.ac.uk) wrote:
  14. : When I run the ValidDisk from AFS-Pro (15.9) it says "block xxxxx allocated
  15. : but not used" (hundreds of times) and reports this as an error.
  16. : So I ran the FixDisk and that seemed to sort out all the errors.
  17. : But after a short time they all build up again and occasionally I`ll even 
  18. : get  a "Directory not valid" which I have found no way of getting back (even 
  19. : through DiskSalv 4). 
  20. : It seems that when I use DirectoryOpus 4 or the Zip drive these errors 
  21. : happen, but I`m not too sure.
  22. : The only other thing I can think of what could be the culprit is the DMA 
  23. : mask, set in HDToolBox, my Hard Disk has the same value as the Zip Drive 
  24. : (using Squirrel).
  25. : Do they have to be different? If so what is the correct hex number?
  26. : (They are both at their defaults 0xfffffffe)
  27.  
  28. Have you tried FLD on support@flevel.co.uk ?
  29.  
  30. The Block allocate and not used problems with 15.9 are well known and the
  31. fix mode of DiskValid fixes it well.  The other problem is more serious.
  32.  
  33. I am the author of the AFS FAQ and I attach the sections on MaxTransfer and
  34. DMAMask for you to check.  If this doesn't help get in touch with FLD at the
  35. above email address.  They will probably help...
  36.  
  37. Please do not distribute this snippet of the FAQ.  A new revised version will
  38. be available at the beginning of April....
  39.  
  40. 23.  What is MaxTransfer ?
  41.  
  42.      Some IDE drives have problems with high MaxTransfer values, they seem 
  43.      to "choke" on large blocks of data if they are sent by the controller 
  44.      in one gulp.  SCSI drives should run with any MaxTransfer, I haven't 
  45.      had any problems with them.  
  46.      
  47.      By the way, the MaxTransfer value is hardly important for the disk 
  48.      performance - a value of 0xFFFFFF means "16MB max in one transfer" 
  49.      while a value of 0xFFFF is still 64K.  I once set it as low as 2K and 
  50.      the loss of speed was hardly noticable.
  51.  
  52.  
  53. 24.  What value should MaxTransfer be ?
  54.  
  55.      IDE Drives  - Try 0x1FE00.  If files greater than 64K get corrupted 
  56.                    then reduce it to 0xFE00.
  57.  
  58.      SCSI Drives - Use 0xFFFE00.
  59.  
  60.      It must also be divisable by the sector size (512) due to a bug in the
  61.      WorkBench format code.
  62.  
  63.  
  64. 25.  What is DMAMask ?
  65.  
  66.      DMAMask is used for two purposes :-
  67.      
  68.      1.  High speed devices like disk controllers can read data straight 
  69.          from memory without any CPU load.  This access is call direct 
  70.          memory access or DMA.
  71.  
  72.          Standard Amiga devices can only use CHIP memory for DMA.  Disk 
  73.          controllers are usually capable of using DMA to any memory.
  74.  
  75.          The DMAMask value restricts DMA activity by a particular device 
  76.          driver to a particular area of memory.  
  77.          
  78.          The default value of 0xFFFFFF restricts DMA to the Z2 area.  This 
  79.          is a bad idea for any Z3 based machine which always has memory 
  80.          outside this area.  In this case 0xFFFFFFFC would be a better 
  81.          value.
  82.  
  83.      2.  The DMAMask also control the alignment of any buffers used to 
  84.          access the device.  The least significant bits are used to control
  85.          this.  Values with no zero bits, end in 0xF, will have no 
  86.          alignment.  Values with one zero bit, end in 0xE, will be word 
  87.          aligned.  Values with two zero bits, end in 0xC, will be long word
  88.          aligned.  
  89.          
  90.          The alignment can make a lot of difference to performance.  
  91.          Longword alignment is usually the best.
  92.  
  93.  
  94. 26.  What value should DMAMask be ?
  95.  
  96.      Read the instructions that came with your computer or disk controller.
  97.      
  98.      If this doesn't help look at your memory map with ShowConfig.  Use the
  99.      maximum memory address as a starting point.  This should have a number
  100.      of F's in it.  Change the last F to a C to ensure longword alignment.
  101.      Use this value.
  102.  
  103.  
  104. 27.  How many buffers should I assign to each AFS partition ?
  105.  
  106.      The HDToolBox default of 30 buffers, actually 50, will result in poor 
  107.      performance.  The minimum should be 100.  If you have the memory use 
  108.      200 buffers for active partitions.
  109.      
  110.      Remember that each buffer is 1024 bytes and NOT 512 as is true for 
  111.      FFS.
  112.  
  113.      AFS sanity checks the number of buffers ensuring that the value is 
  114.      between 50 and 300.
  115.  
  116. --
  117. Mark Harde
  118.